<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>template</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>template</h1>
    <hr>
    <div id="app">
        {{message}}
    </div>
    <template id="dd2">
        <h2 style="color:blue">我是template标签模版</h2>
    </template>
    <script type="x-template" id="dd3">
        <h2 style="color: pink">我是script标签模版</h2>
    </script>

    <script type="text/javascript">
       var app = new Vue({
        el:'#app',
        data:{
            message: 'hello world!11111'
        },
        // template:`
        //    <h2 style="color:red">我是选项模版</h2>
        // `
         template:"#dd3"
       })
    </script>
</body>
</html>